//
//  YCHeroCell.m
//  LOLBox
//
//  Created by mac on 15-3-30.
//  Copyright (c) 2015年 Honey. All rights reserved.
//

#import "YCHeroCell.h"
#import "YCHeroModel.h"
#import "UIImageView+WebCache.h"

@interface YCHeroCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *name;



@end

@implementation YCHeroCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)fillCellWithModel:(YCHeroModel *)model
{
//    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"noimage_xiangqing"]];
    self.imgView.image = [UIImage imageNamed:model.img];
    self.title.text = model.title;
    self.name.text = model.cnName;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
